package com.yic.module.wms.convert.warehouse;

import java.util.*;

import com.yic.framework.common.pojo.PageResult;

import com.yic.module.wms.api.brand.dto.WarehouseRespDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.yic.module.wms.controller.admin.warehouse.vo.*;
import com.yic.module.wms.dal.dataobject.warehouse.WarehouseDO;

/**
 * 仓库 Convert
 *
 * @author 系统管理员
 */
@Mapper
public interface WarehouseConvert {

    WarehouseConvert INSTANCE = Mappers.getMapper(WarehouseConvert.class);

    WarehouseDO convert(WarehouseCreateReqVO bean);

    WarehouseDO convert(WarehouseUpdateReqVO bean);

    WarehouseRespVO convert(WarehouseDO bean);

    List<WarehouseRespVO> convertList(List<WarehouseDO> list);

    PageResult<WarehouseRespVO> convertPage(PageResult<WarehouseDO> page);

    List<WarehouseExcelVO> convertList02(List<WarehouseDO> list);

    List<WarehouseSimpleRespVO> convertList03(List<WarehouseDO> list);
    WarehouseRespDTO convert01(WarehouseDO warehouse);

    List<WarehouseRespDTO> convertList04(List<WarehouseDO> list);
}
